package com.data.dbdao;

import com.client.bean.SaFeAPK;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @createTime: 2018/2/28
 * @author: HingLo
 * @description:
 */
@Repository
public class IndexDao extends BaseDao {
    public SaFeAPK listDao() {
        String hql = "from SaFeAPK order by date desc";
        List<SaFeAPK> list = (List<SaFeAPK>) super.findMassageDao(hql);
        if (list.isEmpty()) {
            return null;
        } else {
            return list.get(0);
        }
    }


}
